package com.wanxi.test;

public class SumOushuArray {
    public static void main(String[] args) {
        int[] array = {23, 4, 54, 6, 7, 65};
        int sum = 0;
        for (int i = 0; i < array.length; i++) {
            if (array[i] % 2 == 0) {
                sum += array[i];
            }
        }
        System.out.println(sum);
    }
}
